from django.conf.urls import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls.static import static 
from django.conf import settings
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'Parrainage.views.home', name='home'),
    url(r'^4img1mot/', include('imgmot.urls')),
     url(r'^imgmot/', 'imgmot.views.home'),
    url(r'^admin/', include(admin.site.urls)),
)

urlpatterns += staticfiles_urlpatterns () 
urlpatterns += static (settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)